
import 'dart:convert';

StudentToClassDto studentToClassDtoFromJson(String str) =>
    StudentToClassDto.fromJson(json.decode(str));

String studentToClassDtoToJson(StudentToClassDto data) =>
    json.encode(data.toJson());

class StudentToClassDto {
  StudentToClassDto({
    this.classId,
    this.studentsUserName,
  });

  String? classId;
  List<String>? studentsUserName;

  factory StudentToClassDto.fromJson(Map<String, dynamic> json) =>
      StudentToClassDto(
        classId: json["classId"],
        studentsUserName: json["studentsUserName"] != null
            ? List<String>.from(json["studentsUserName"].map((x) => x))
            : null,
      );

  Map<String, dynamic> toJson() => {
        "classId": classId,
        "studentsUserName": studentsUserName != null
            ? List<dynamic>.from(studentsUserName!.map((x) => x))
            : null,
      };
}
